import { App } from 'vue';
import btn from './btn';
const directives = {
  btn, // 按钮指令
};

export const registerDirectives = (app: App) => {
  Object.keys(directives).forEach(key => {
    // 注册全局指令
    app.directive(key, directives[key as keyof typeof directives]);
  });
};
